package com.gc.gc.user.service;

import com.gc.gc.duty.login.entity.MenuLevelEntity;
import com.gc.gc.mybatis.entity.PtUserEntity;
import com.gc.gc.mybatis.flexigrid.PadingRstType;
import com.gc.gc.mybatis.flexigrid.PagingBean;
import com.gc.gc.mybatis.ztree.ZtreeEntity;
import com.gc.gc.user.entity.UserSearchEnity;

import java.util.List;

public interface UserService {
    PtUserEntity queryUserInfoByUserName(String username);

    PtUserEntity queryUserInfoByEmail(String username);

    PtUserEntity queryUserInfoByMobile(String username);

    List<MenuLevelEntity> queryMenuInfoByLang(String lang);

    PadingRstType<PtUserEntity> getUserInfolistByPage(UserSearchEnity search, PagingBean paging);

    void deleteUserById(String userUuid);
    void addUser(String userName, String userPasswd, String userNick, String userMobile, String userEmail);

    List<ZtreeEntity> getRoleZtreeListByUserId(String userUuid);

    void saveRoleByUserId(String userUuid, String roleUuids);

    List<String> queryMenuInfoList(String userUuid);

    void allocateRoleByUser(String userUuid, String roleArray);



}


